package org.wxd.common.utils.http;

/**
 * Created by wangxd on 2016/12/17.
 */
public enum HttpMethod {
    POST("POST"),GET("GET");

    public static boolean isPost(HttpMethod method){
        return method.compareTo(POST) == 0;
    }
    public static boolean isGET(HttpMethod method){
        return method.compareTo(GET) == 0;
    }

    HttpMethod(String name){
        this.name = name;
    }
    private String name;

    public String getName() {
        return name;
    }
}
